<template>
<div>
    <h2 style="text-align:center">用户理财项目列表</h2>
    <FinanCommon v-slot="info">
        <a href="#" @click="ShowUserFinaninfo(info.id)">用户购买明细</a>
    </FinanCommon>
</div>
</template>

<script setup lang="ts">
import FinanCommon from './FinanCommon.vue'
import { useRouter } from 'vue-router';

//创建路由操作对象
const router=useRouter();

//通过路由跳转到用户理财页面
const ShowUserFinaninfo=(Fid:number)=>{
    router.push({
        name:"ShowAdminFinanInfo",
        params:{
            Fid:Fid
        }
    })
}
</script>